package com.arpa.wms.domain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * 领用单VO
 * @author jinss
 * @date 2020-08-20 11:14:51
 **/
@Data
@ApiModel(value="CollectVO对象", description="领用单VO")
public class CollectVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "领用单号")
    private String code;

    @ApiModelProperty(value = "仓库")
    private String warehouseCode;

    @ApiModelProperty(value = "入驻商")
    private String shipmentCode;

    @ApiModelProperty(value = "入驻商")
    private String shipmentName;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "领用部门")
    private String collectDept;

    @ApiModelProperty(value = "领用人")
    private String collectBy;

    @ApiModelProperty(value = "领用人名称")
    private String collectName;

    @ApiModelProperty(value = "基本单位领用总数量")
    private BigDecimal totalQuantity;

    @ApiModelProperty(value = "基本单位实际领用总数量")
    private BigDecimal totalActualQuantity;

    @ApiModelProperty(value = "单位领用总数量")
    private BigDecimal totalUnitQuantity;

    @ApiModelProperty(value = "单位实际领用总数量")
    private BigDecimal totalActualUnitQuantity;

    @ApiModelProperty(value = "审批人")
    private String approvedBy;

    @ApiModelProperty(value = "审批人名称")
    private String approvedName;

    @ApiModelProperty(value = "审批时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtApproved;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "审批意见")
    private String approvalOpinions;

    @ApiModelProperty(value = "仓库名称")
    private String warehouseName;

    @ApiModelProperty(value = "领用类型")
    private String typeName;

    @ApiModelProperty(value = "创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreated;

    @ApiModelProperty(value = "创建人")
    private String createdName;

    @ApiModelProperty(value = "修改人")
    private String modifiedName;

    @ApiModelProperty(value = "修改时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "总数")
    private Long total;

    @ApiModelProperty(value = "明细")
    private List<CollectItemVO> collectItemList= new ArrayList<>();

    @ApiModelProperty(value = "所属机构Code")
    private String groupCode;

    @ApiModelProperty(value = "所属机构名称")
    private String groupName;
}
